package com.bdqn.business.academic.controller;

import com.bdqn.aop.Log;
import com.bdqn.business.academic.service.CurriculumService;
import com.bdqn.entity.academic.Curriculum;
import com.bdqn.entity.academic.School;
import com.bdqn.response.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/curriculum")
public class CurriculumController {

    @Autowired
    private CurriculumService curriculumService;


    @Log("获取阶段列表")
    @RequestMapping(value = "/getList",method = RequestMethod.POST)
    public Result getList(@RequestBody Map<String,Object> map){
        return curriculumService.getList(map);
    }

    @Log("保存阶段")
    @RequestMapping(value = "/save",method = RequestMethod.POST)
    public Result save(@RequestBody Curriculum curriculum){
        return curriculumService.save(curriculum);
    }
}
